package com.yyj.service;

import com.yyj.dao.PostsDao;
import com.yyj.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PostsService {

    @Autowired
    PostsDao postsDao;
    public List<Dept> findPost() {
        List<Dept> list = postsDao.findPost();
        return list;
    }
}
